package com.lbb.waimai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbb.waimai.entiry.Category;
import com.lbb.waimai.entiry.ShoppingCart;
import com.lbb.waimai.entiry.vo.ShoppingCartVo;
import io.swagger.models.auth.In;

import java.util.List;

public interface ShoppingCartService extends IService<ShoppingCart> {
    //获取购物车的内容,根据userid和foodid以及status为0（未生成订单，未支付）状态下的购物车
    List<ShoppingCart> findInCart(Long userId);

    //清空购物车
    void clearCart(Integer userId);

    void deleteFood(Integer id, Integer userId);

    //加入购物车
    void takeInCart(ShoppingCartVo shoppingCartVo, Integer userId);
}
